<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/zoomio.css"/>
		<link rel="stylesheet" type="text/css" href="css/jquery.spinner.css"/>
		<link rel="stylesheet" type="text/css" href="css/all.css" />
		<link rel="stylesheet" type="text/css" href="index_iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/detail.css" />
		
		<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery.spinner.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/api.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/zoomio.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/Cookie.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="scoll-top">
			<div class="wraper1">
				<div class="header-a">
					<a href="index.html">
						<div class="logo">暖岛</div>
					</a>
					<div class="header-search">
						<input type="search" class="header-search-input" id="J_search-input" placeholder="请输入关键字搜索">
						<i></i>
					</div>
					<span class="header-a_hint">每日10点上新&nbsp;&nbsp;&nbsp;&nbsp;满249元包邮</span>
					<div class="index-weiboshare m-hidden" id="J_index-weibo-plugins1"><iframe width="121" scrolling="no" height="24" frameborder="0" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&amp;width=136&amp;height=24&amp;uid=2093879035&amp;style=2&amp;btn=red&amp;dpc=1"></iframe></div>

					<div class="nav-mynuandao">
						<div class="mini-cart">
							<span class="iconfont icon-gouwuche"></span>
							<span class="cart-word">购物车</span>
							<span class="cart-num">0</span>
						</div>
						<li class="site-nav-pipe m-hidden">|</li>
						<div class="user-login">
							<a href="reg-login.html">登录 | 注册</a>
						</div>
						<div id="user-information">
							<span class="user-img"></span>
							<span class="user-name"></span>
							<p class="user-icon"></p>
							<div class="user-nuandao">
								<div class="arrow"></div>
								<ul class="user-nuandao-list">
									<li>
										<a href="javascript:;">我的订单</a>
									</li>
									<li>
										<a href="javascript:;">未付款订单</a>
									</li>
									<li><span class="user-nuandao-num">1</span>
										<a href="javascript:;">我的代金券</a>
									</li>
									<li>
										<a href="javascript:;">我的评价</a>
									</li>
									<li>
										<a href="javascript:;">我的最爱</a>
									</li>
									<li>
										<a href="javascript:;">我的作品</a>
									</li>
									<li>
										<a href="javascript:;">修改密码</a>
									</li>
									<li class="log-out" id="log-out">
										<a href="javascript:;" id="">登出</a>
									</li>
								</ul>

							</div>
						</div>
					</div>
				</div>
			</div>
			<!--2-->
			<div class="wraper2">
				<div class="container">
					<ul class="main-nav">
						<li>
							<a href="javascript:;" class="nav-special">大家喜欢</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-1">女装服饰</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-2">男装服饰</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-3">美容健康</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-4">家居创意</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-5">数码户外</a>
						</li>
						<li>
							<a href="javascript:;" class="open-second-nav second-nav-6">限时暖价</a>
						</li>
						<li>
							<a href="javascript:;" class="nav-special">精选品牌</a>
						</li>

					</ul>
					<div class="wraper2-1">
						<div class="wraper2-1_cont cont-first"><i class="iconfont icon-haoyou icon-color"></i>邀请好友立送20元</div>
						<div class="wraper2-1_cont cont-second">
							<div class="mobile-link">
								<i class="iconfont icon-mobile icon-color">
								
							</i> 手机版
							</div>
							<!--hover-->
							<div class="hover-mobile">
								<img src="img/mobile.jpg" />
								<div class="arrow2"></div>
							</div>
						</div>
						<div class="wraper2-1_cont cont-third">
							<div class="iconfont icon-weixin">
							</div>
							<!--hover-->
							<div id="" class="hover-weixin">
								<img src="img/weixin.jpg" />
								<div class="arrow3"></div>
							</div>
						</div>

					</div>
					<!---->
					<!--2级菜单-->
					<div class="wrapper-second-nav">
						<div class="second-nav">
							<div class="second-nav-l">
								<h4>逛分类</h4>
								<ul>
									<li>
										<a href="javascript:;">
											<!--新品T恤-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--T恤背心-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--卫衣-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--衬衫罩衫-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--毛衣针织-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--连衣裙-->
										</a>
									</li>
								</ul>
								<ul>
									<li>
										<a href="javascript:;">
											<!--半身裙-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--外套-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--牛仔裤-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--裤装-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--泳衣-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--內衣-->
										</a>
									</li>
								</ul>
								<ul>
									<li>
										<a href="javascript:;">
											<!--袜子-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--鞋靴-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--箱包-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--饰品-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--配件-->
										</a>
									</li>
									<li>
										<a href="javascript:;">
											<!--限时暖价-->
										</a>
									</li>
								</ul>
							</div>
							<div class="second-nav-r">

								<h4>特别推荐</h4>
								<div class="second-nav-r-bottom">
									<ul>
										<li>
											<a href="javascript:;">暖岛独家</a>
										</li>
										<li>
											<a href="javascript:;">买手精选</a>
										</li>
										<li>
											<a href="javascript:;">编辑推荐</a>
										</li>
										<li>
											<a href="javascript:;">岛民最爱</a>
										</li>
										<li>
											<a href="javascript:;">本月星座</a>
										</li>
										<li>
											<a href="javascript:;">LookBook</a>
										</li>
									</ul>
									<div class="second-nav-r-img">
										<a href="javascript:;"><img /></a>
										<a href="javascript:;"><img /></a>
										<a href="javascript:;"><img /></a>
										<a href="javascript:;"><img /></a>
										<a href="javascript:;"><img /></a>
										<a href="javascript:;"><img /></a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!---->
				</div>

			</div>
		</div>
		<!--baoqilai-->
		<!--空白-->
		<div class="header-none">

		</div>
		<!--网页头部结束-->
		<div class="wrapper-2">
			<div class="container-2">
				<div class="enter-mothod">
					<a href="javascript:;">数码户外</a> >
					<a href="javascript:;">音乐设备</a> >
					<a href="javascript:;">音响设备</a> >
					<a href="javascript:;">【包邮】jeancard英国伦敦城市音铃</a>

				</div>
				<div class="main-cont">
					<div class="view-pictures">
						<img src="" class="sampleimage" />
						<div id="weibo-logo"></div>

					</div>

					<!--右边-->
					<div class="main-cont-right">
						<div class="middle">
							<div class="pname"></div>
							<a href="javascript:;" class="topic-introduction">Jeancard</a>
							<dd class="dprice">
								<span id="pprice">
									<span class="new pprice">
									</span>
								<span class="old"> 
									</span>
								</span>
								<div class="comment">
									<i class="pstart5"></i>
									<a href="javascript:;" id="seecomments">共3条评价</a>
								</div>
							</dd>
							<dd class="story">
								<a href="#p-story">更多介绍</a>

							</dd>
							<dd class="color">
								<label>系列</label>
								<div class="color-pic">
									<a href="javascript:;">
										<img title="jeancard招财猫音乐盒八音盒财神摆件" src="http://img2.nuandaoimg.com/Public/images/uploads/product/20160229/56d3e03851e1d-100.jpg" class="clicked">
									</a>
									<a href="javascript:;">
										<img title="【包邮】jeancard阿里山城市音铃" src="http://img2.nuandaocdn.com/Public/images/uploads/product/20140318/5327e8c50e6f9-100.jpg">
									</a>
									<a href="javascript:;">
										<img title="【包邮】jeancard英国伦敦城市音铃" src="http://img2.nuandaocdn.com/Public/images/uploads/product/20140318/5327e8cfafcc7-100.jpg">
									</a>
									<a href="javascript:;">
										<img title="【包邮】jeancard旋转木马旋转音乐盒" src="http://img1.nuandaocdn.com/Public/images/uploads/product/20140318/5327e8ea0bbbf-100.jpg">
									</a>
									<a href="javascript:;">
										<img title="【包邮】jeancard摩天轮旋转音乐盒" src="http://img1.nuandaocdn.com/Public/images/uploads/product/20140318/5327e9029101d-100.jpg">
									</a>
									<a href="javascript:;">
										<img title="【包邮】jeancard爱的餐桌旋转音乐盒" src="http://img1.nuandaocdn.com/Public/images/uploads/product/20140318/5327e9608e31e-100.jpg">
									</a>
								</div>
							</dd>
							<!--
								
								
								1111111
								数量 输入框
							-->
							<dd class="buy-number">
								<div class="num-desc">数量</div>
								<input type="text" class="spinnerExample" id="ipt-num"/>
							</dd>
							<!--加入购物车-->
							<div class="btn-group btn-withloading">
								<button id="add-cart" disable="false">
									加入购物车
								</button>
								<button class="goto" id="add-cart-now" disable="false">
									立即结算
								</button>
								<button class="onlinechat" id="online-chat" disable="false">
									在线导购
								</button>
							</div>
							<dd class="all-like">
								<div class="bg-color"></div>
								<div>已68个人喜欢</div>
							</dd>
							<div class="ibelieve">
								<img src="http://jc.nuandaojs.com/Public/images/p-ibelieve1009.jpg" alt="">
							</div>
							<div class="extra">
								该商品参加<span class="text-error">满249包邮</span>活动
							</div>
						</div>
						<!--middlediv-->

						<div class="ald">
							<div class="ald-hd">
								<s></s>
								<span>看了又看</span>
							</div>
							<div class="ald-slider" id="J_ald-slider">
								<ul class="ald-switchable-content">
									<li class="ald-item">
										<div class="img">
											<a href="">
												<img src="http://img1.nuandaoimg.com/Public/images/uploads/product/20160229/56d3be7b7aa2f-300.jpg">
											</a>
											<p class="look-price">￥368</p>
										</div>
									</li>
									<li class="ald-item">
										<div class="img">
											<a href="/product/174217">
												<img src="http://img1.nuandaocdn.com/Public/images/uploads/product/20170802/5981515e372ac-300.jpg">
											</a>
											<p class="look-price">￥368
											</p>
										</div>
									</li>
									<li class="ald-item">
										<div class="img">
											<a href="/product/54140">
												<img src="http://img1.nuandaoimg.com/Public/images/uploads/product/20140401/533a8aa5c55f6-300.jpg">
											</a>
											<p class="look-price">￥338
											</p>
										</div>
									</li>
									<li class="ald-item">
										<div class="img">
											<a href="/product/52263">
												<img src="http://img2.nuandaoimg.com/Public/images/uploads/product/20140318/5327e8c50e6f9-300.jpg">
											</a>
											<p class="look-price">￥328
											</p>
										</div>
									</li>
									<li class="ald-item">
										<div class="img">
											<a href="/product/52262">
												<img src="http://img1.nuandaoimg.com/Public/images/uploads/product/20140318/5327e8cfafcc7-300.jpg">
											</a>
											<p class="look-price">￥328</p>
										</div>
									</li>
								</ul>
								<ul class="ald-switchable-trigger" id="J_ald-trigger">
									<li class="ald-prev-btn">
										<a href="javascript:;" class="up">
											
										</a>
									</li>
									<li class="ald-next-btn">
										<a href="javascript:;" class="down">
										</a>
									</li>
								</ul>
							</div>
						</div>
						<!--右边结束标签-->
					</div>
				</div>
			</div>
		</div>

		<!--相关商品推荐-->
		<div class="wrapper-3">
			<div class="container-3">
				<div class="guest-like">
					<p>很喜欢这个商品？猜你也喜欢</p>
					<ul class="guest-like-list">
						<a href="javascript:;">
							<img src="http://img2.nuandaoimg.com/Public/images/uploads/product/20140318/5327e8c50e6f9-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaoimg.com/Public/images/uploads/product/20140318/5327e9029101d-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img2.nuandaocdn.com/Public/images/uploads/product/20160823/57bc05ea7acca-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaocdn.com/Public/images/uploads/product/20150520/555c4af902b22-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img2.nuandaoimg.com/Public/images/uploads/product/20130626/51ca5be1bcbbf-218.JPG" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaocdn.com/Public/images/uploads/product/20130626/51ca5d24a75cc-218.JPG" />
						</a>

					</ul>
					
				</div>
			</div>
		</div>
		<!--相同的底部-->
		<!--产品详情以及评价-->
		<div class="label-header">
			<ul class="container">
				<li class="my-checked " id="my-left">
					<a data-label="p-story" href="javascript:;">产品故事</a>
				</li>
				<li class="" id="my-right">
					<a id="toseecomments" data-label="p-feedback" href="javascript:;">岛民评价(<strong class="commentSum">3</strong>)
					</a>
				</li>
				<li></li>	
			</ul>
		</div>
		<!--评价详细-->
		<div class="wrapper-5">
			<div class="container-5 my-show" id="p-story">
				<h5>商品描述 ：</h5>
			
				<div id="" class="my-pdesc">
					虽然我们已长大，虽然拥有各种物品，但这熟悉的旋律，唤起儿时的记忆，那个充满童话和笑声的幸福时光。让这音乐盒，陪伴着你一颗永不老的心。
				</div>
				
				<!--xiangxi介绍-->
				<div class="p-desc">
					<ul class="fl width-adaptive" style="margin-right:100px;">
						<li>货品产地：<span title="深圳">深圳</span></li>
						<li>品牌属地：<span title="台湾">台湾</span></li>
						<li>物料：<span title="木，金属，树脂">木，金属，树脂</span></li>
						<li>颜色：
	              透明</li>
					</ul>
					<ul class="fl" style="margin-right:50px;">
						<li>尺寸：16*16*15</li><li>送货时间： 付款后2个工作日内发货</li>
						<li>退换政策：
	          <a class="qing" href="/public/faq?q=3" target="_blank">查看详细规则»</a>
						</li>
					</ul>
					<ul class="fl" style="margin-right:50px;">
						<li>温馨提示：<span class="invi-alert">请注意商品尺寸</span></li>
						<li></li>
					</ul>
				</div><!--jieshoa结束-->
				
				<div class="so-much-pic">
					<img src="http://img02.taobaocdn.com/imgextra/i2/399073959/T2J8jXXwpaXXXXXXXX_!!399073959.jpg" />
					<img src="http://img01.taobaocdn.com/imgextra/i1/399073959/T2rVYaXsxaXXXXXXXX_!!399073959.jpg"/>
					<img src="http://img04.taobaocdn.com/imgextra/i4/399073959/T2_4baXC4XXXXXXXXX_!!399073959.jpg"/>
					<img src="http://img04.taobaocdn.com/imgextra/i4/399073959/T2vl_XXvVaXXXXXXXX_!!399073959.jpg"/>
					<img src="http://img02.taobaocdn.com/imgextra/i2/399073959/T2VR6XXvNaXXXXXXXX_!!399073959.jpg"/>
					<img src=""/>
					<input type="image" src="http://img2.nuandaoimg.com/Public/images/uploads/fck/image/2014/03/181107589621.jpg" width="708" height="463">
					<input type="image" src="http://img2.nuandaoimg.com/Public/images/uploads/fck/image/2014/03/181142079921.jpg" width="700" height="1401" longdesc="undefined" style="font-size: 12px;">
					
				</div>
			</div>
			<div class="container-5-right">
				<strong>0</strong>条评价
			</div>
		</div>
		<!--底部商品推荐-->
		<!--相关商品推荐-->
		<div class="wrapper-3">
			<div class="container-3">
				<div class="guest-like">
					<h6>更多商品推荐</h6>
					<ul class="guest-like-list">
						<a href="javascript:;">
							<img src="http://img2.nuandaoimg.com/Public/images/uploads/product/20140318/5327e8c50e6f9-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaoimg.com/Public/images/uploads/product/20140318/5327e9029101d-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img2.nuandaocdn.com/Public/images/uploads/product/20160823/57bc05ea7acca-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaocdn.com/Public/images/uploads/product/20150520/555c4af902b22-218.jpg" />
						</a>
						<a href="javascript:;">
							<img src="http://img2.nuandaoimg.com/Public/images/uploads/product/20130626/51ca5be1bcbbf-218.JPG" />
						</a>
						<a href="javascript:;">
							<img src="http://img1.nuandaocdn.com/Public/images/uploads/product/20130626/51ca5d24a75cc-218.JPG" />
						</a>

					</ul>
					
				</div>
			</div>
		</div>
		
		
		<!--8888底部-->
		<div class="wrapper8">

			<div id="footer">

				<div id="goTop">^</div>

				<div id="footer-color">
					<div class="footer-a">
						<div class="footer-a-left">
							<ul>
								<li>
									<a href="javascript:;">逛逛暖岛</a>
								</li>
								<li>
									<a href="javascript:;">登录注册</a>
								</li>
								<li>
									<a href="javascript:;">下单及支付</a>
								</li>
								<li>
									<a href="javascript:;">使用代金券</a>
								</li>
								<li>
									<a href="javascript:;">找回密码</a>
								</li>
							</ul>
							<!--2-->
							<ul>
								<li>
									<a href="javascript:;">订单详情</a>
								</li>
								<li>
									<a href="javascript:;">查询订单</a>
								</li>
								<li>
									<a href="javascript:;">追踪物流</a>
								</li>
								<li>
									<a href="javascript:;">配送费用</a>
								</li>
								<li>
									<a href="javascript:;">配送时间</a>
								</li>
							</ul>
							<!--3-->
							<ul>
								<li>
									<a href="javascript:;">退货换货</a>
								</li>
								<li>
									<a href="javascript:;">退还规则</a>
								</li>
								<li>
									<a href="javascript:;">退换方式</a>
								</li>
								<li>
									<a href="javascript:;">退款时间</a>
								</li>
								<li>
									<a href="javascript:;">运费报销</a>
								</li>
							</ul>
							<!--4-->
							<ul>
								<li>
									<a href="javascript:;">关于暖岛</a>
								</li>
								<li>
									<a href="javascript:;">暖岛故事</a>
								</li>
								<li>
									<a href="javascript:;">合作机会</a>
								</li>
								<li>
									<a href="javascript:;">加入暖岛</a>
								</li>
								<li>
									<a href="javascript:;">联系我们</a>
								</li>
							</ul>
						</div>
						<div class="footer-a-right">
							<h4>订阅电子报</h4>
							<div class="footer-email">
								<input class="input" type="email" name="news-email" id="news-email" placeholder="请输入邮箱地址">
								<a herf="javascript:;" id="newsbook-btn" class="iconfont icon-youxiang-"><i></i></a>
							</div>
							<!--图标-->

							<!--图标-->
						</div>
					</div>

				</div>
				<!--color-->
				<!--footer-->

				<div class="footer-b">
					<div class="anquan">
						<img src="img/anquanrenz.jpg" />
					</div>
					<ul class="footer-list">
						<li>
							<a href="javascript:;">使用条款</a>
						</li>
						<li>
							<a href="javascript:;">暖岛APP</a>
						</li>
						<li>
							<a href="javascript:;">友情链接</a>
						</li>
					</ul>
					<p>Nuandao.com 北京暖岛网络信息科技有限公司 © 2011-2016 All rights reserved 京ICP备13034710号-1 | 京公网安备11010102001819号 | 执照号：91110108584425669B | 营业执照信息 | 食品经营许可证：
					</p>

					<a class="icon-315 m-hidden" href="http://www.315online.com.cn/member/315140028.html" title="安全交易认证" target="_blank"></a>
					<div class="work m-hidden">
						周一至周五9:30-18:00<br> 客服热线：021-50276566
					</div>
				</div>
				<!--footer-b-->

				<!--联系客服-->
				<div style="position: fixed; z-index: 279; bottom: 5px; right: 5px;">
					<a href="javascript:;" onclick="easemobim.bind({tenantId: 27912})">
						<img id="easemob-icon" src="http://img2.nuandaocdn.com/Public/images/easemob-icon.png">
					</a>
				</div>
				<!--联系客服-->
			</div>
		</div>
	</body>
	<script src="js/secondNav.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/all.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		

		//console.log(location.search)
		let str = location.search.slice(1);
		//console.log(str);
		var aid = ""
		for(let i = 0; i < str.split('&').length; i++) {
			var arrs = str.split('&')[i];
			var arrs2 = arrs.split('=')
			if(arrs2[0] == 'pid') {
				var pid = arrs2[1]
			}
		}
		
		var pid = pid || 8351;
		//console.log(pid);
		var detailAPI = `http://jx.xuzhixiang.top/ap/api/detail.php?id=${pid}`
		$.ajax({
			url: detailAPI,
			type: 'get',
			success: function(res) {
				let resObj = JSON.parse(res).data
				//console.log(resObj)
				$(".sampleimage").attr("src", resObj.pimg);
				$(".middle .pname").html(resObj.pname);
				$('.middle .pprice').html(resObj.pprice)
				$('.middle .story').html(resObj.pdesc+'<a href="#p-story">更多介绍</a>');
				$('.sampleimage').zoomio()
				
				
				
				
			},
			error: function(error) {
				console.log(error);
			}
		})
		//console.log(location.search)
		
		
		//数量输入框调用
		$('.spinnerExample').spinner({});
		
		/*
		 
		 * 
		 * 
		 * 
		 * */
		$('.color-pic').on('click','img',function(){
			$(this).addClass('clicked');
			
			$(this).parent().siblings().children('.clicked').removeClass('clicked')
		})
		$('.container').on('click','li',function(){
			console.log(this.id)
			$(this).siblings().removeClass('my-checked')
			$(this).addClass('my-checked')
			if(this.id == 'my-right'){
				$('.container-5').css({display:'none'})
				$('.container-5-right').css({display:'block'})
			}else{
				$('.container-5').css({display:'block'})
				$('.container-5-right').css({display:'none'})
			}
		})
		
		
		//给用户购物车中添加商品
		//http://jx.xuzhixiang.top/ap/api/add-product.php?uid=1&pid=1&pnum=1
		$('#add-cart').click(function(){
			//console.log(pid);
			//console.log($('#ipt-num').val())
			//console.log(getCookie('uid'))
			let pnum=$('#ipt-num').val();
			let carAPI=`http://jx.xuzhixiang.top/ap/api/add-product.php?uid=${getCookie('uid')}&pid=${pid}&pnum=${pnum}`
			$.ajax({
				url:carAPI,
				type:'get',
				success:function(addCarContent){
					console.log(JSON.parse(addCarContent))
					
					//右上角显示用户购物车中商品数量
					myNum();
				}
			})
			
			
			
		})
		
		
		
		
		
		
		
		
		//更多商品推荐?pagesize=20&pagenum=4

		//		var data = {
		//			pagesize: 20,
		//			pagenum: 5
		//		}
		//		moreGoods(data)
		//
		//		function moreGoods(dat, cbfn) {
		//			var allGoodsApi = api.allgoodsListApi
		//			$.ajax({
		//				url: allGoodsApi,
		//				type: 'get',
		//				data: dat, //设置参数
		//				success: function(res) {
		//					//console.log(JSON.parse(res).data);
		//					var moreHtml = '';
		//					for(let i = 0; i < JSON.parse(res).data.length; i++) {
		//						let moreObj = JSON.parse(res).data[i];
		//
		//						moreHtml += `
		//								<div class="sale-leaf">
		//						<a class="sale-leaf_imga" href="javascript:;" title="${moreObj.pname}" target="_blank">
		//							<div class="sale-leaf_subtitle">${moreObj.pdesc}
		//							</div>
		//							<img class="currentImage lazyload-img" data-original="${moreObj.pimg}" src="${moreObj.pimg}" style="display: inline;">
		//						</a>
		//						<div class="sale-leaf_info">
		//							<a class="col-4" href="javascript:;" target="_blank">${moreObj.pname}
		//							</a>
		//							<div class="clearfix">
		//								<strong><span>￥${moreObj.pprice}</span> | <span class="through">￥${Number(moreObj.pprice)+23}</span></strong>
		//							</div>
		//							
		//						</div>
		//					</div>
		//					 			`
		//					} /*for循环结束*/
		//					$('.more-product-list').append(moreHtml)
		//					if(cbfn) {
		//						cbfn()
		//					}
		//				},
		//				error: function(error) {
		//					console.log(error);
		//				}
		//			});;
		//
		//		} /*moregoods函数*/
		//
		//		//监听滚轮到达底部自动加载更多
		//		$(document).scroll(function() {
		//			//console.log($(document).scrollTop())
		//			if($(document).scrollTop() - $(document).height() + $(window).height() >= -20) {
		//				//距离底部20
		//
		//				data.pagenum++;
		//				console.log(data)
		//				moreGoods(data);
		//				var scrollX = $(document).scrollTop();
		//				$(document).scrollTop(scrollX - 200)
		//			}
		//
		//			//回到顶部
		//			$('#goTop').click(function() {
		//				document.scrollingElement.scrollTop = 0;
		//			})
		//
		//			//头部滚动定位
		//			if($(document).scrollTop() > 0) {
		//
		//				$('#scoll-top').stop().animate({
		//					top: -46
		//				}, 500)
		//			} else {
		//
		//				$('#scoll-top').stop().animate({
		//					top: 0
		//				}, 500).delay(100)
		//			}
		//
		//		})
	</script>

</html>